Home

Auto Attendant - Error Exporting Holiday Schedule

%3CLINGO-SUB%20id%3D%22lingo-sub-201211%22%20slang%3D%22en-US%22%3EAuto%20Attendant%20-%20Error%20Exporting%20Holiday%20Schedule%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-201211%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22NoteView%20lia-note-view-display%20lia-note-source-outbox%20lia-note-read%20lia-read%20lia-component-notes-widget-note-view%20lia-component-note%22%3E%3CDIV%20class%3D%22lia-quilt%20lia-quilt-private-notes-item%20lia-quilt-layout-single-row-full%22%3E%3CDIV%20class%3D%22lia-quilt-row%20lia-quilt-row-main%22%3E%3CDIV%20class%3D%22lia-quilt-column%20lia-quilt-column-24%20lia-quilt-column-single%20lia-quilt-column-main-content%22%3E%3CDIV%20class%3D%22lia-quilt-column-alley%20lia-quilt-column-alley-single%22%3E%3CDIV%20class%3D%22lia-note-content%22%3E%3CDIV%20class%3D%22lia-note-body%20lia-component-body%22%3ELate%20last%20year%20some%20PowerShell%20was%20added%20to%20SfB%20to%20allow%20for%20exporting%20and%20importing%20of%20holidays.%26nbsp%3B%20Back%20in%20December%20I%20could%20export%20and%20import%20auto%20attendants%20without%20issue.%26nbsp%3B%20Now%20I'm%20getting%20the%20following%20error%20when%20trying%20to%20export%20my%20holidays.%20Any%20ideas%20on%20how%20to%20fix%20this%3F%3C%2FDIV%3E%3CDIV%20class%3D%22lia-note-body%20lia-component-body%22%3EHas%20something%20changed%20with%20the%20backend%20of%20the%20AA%20structure%20potentially%3F%26nbsp%3B%20As%20a%20test%2C%20I%20created%20a%20new%20AA%2C%20added%20a%20holiday%20and%20was%20able%20to%20export%20and%20also%20import%20to%20it%20with%20no%20problem.%26nbsp%3B%20However%2C%20with%20all%20my%20existing%20AAs%20I%20get%20the%20below%20error.%26nbsp%3B%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22lia-note-body%20lia-component-body%22%3E%24bytes%20%3D%20Export-CsOrganizationalAutoAttendantHolidays%20-PrimaryUri%20sip%3Axxxxxxxxxxx%40xxx.com%20%5BSystem.IO.File%5D%3A%3AWriteAllBytes(%22C%3A%5CTemp%5CHolidays.csv%22%2C%20%24bytes)%3C%2FDIV%3E%3CDIV%20class%3D%22lia-note-body%20lia-component-body%22%3EAudio%20file%20name%20cannot%20be%20null%20or%20whitespace.%20%2B%20CategoryInfo%20%3A%20NotSpecified%3A%20(%3A)%20%5BExport-CsOrgani...tendantHolidays%5D%2C%20OnlineCmdletException%20%2B%20FullyQualifiedErrorId%20%3A%20AudioFileNameNullOrWhitespace%2CMicrosoft.Rtc.Management.Hosted.OAA.ExportCsOaaHolidaysCmdlet%20%2B%20PSComputerName%20%3A%20admin0a.online.lync.com%20Exception%20calling%20%22WriteAllBytes%22%20with%20%222%22%20argument(s)%3A%20%22Value%20cannot%20be%20null.%20Parameter%20name%3A%20bytes%22%20At%20line%3A2%20char%3A1%20%2B%20%5BSystem.IO.File%5D%3A%3AWriteAllBytes(%22C%3A%5CTemp%5CHolidays.csv%22%2C%20%24bytes)%20%2B%20~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%20%2B%20CategoryInfo%20%3A%20NotSpecified%3A%20(%3A)%20%5B%5D%2C%20MethodInvocationException%20%2B%20FullyQualifiedErrorId%20%3A%20ArgumentNullException%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22lia-note-actions%20clearfix%22%3E%3CSPAN%20class%3D%22lia-button-wrapper%20lia-button-wrapper-secondary%20lia-component-notes-action-delete-single%22%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fnotes%2Fv1_1%2Fprivatenotespage.deletenote%3Adelete_note%2Fnote-id%2F52422%2Fnote-source%2Foutbox%3Ft%3Aac%3Dtab%2Foutbox%2Fnotes-view-mode%2Fsingle%2Fnote-id%2F52422%26amp%3Bt%3Acp%3Dnotes%2Fcontributions%2Factions%22%20target%3D%22_blank%22%3EDelete%3C%2FA%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22lia-menu-bar%20lia-menu-bar-bottom%20bottom-block%20lia-component-menubar-pager-bottom%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-201211%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeployment%20%26amp%3B%20Operations%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPSTN%20Calling%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-229117%22%20slang%3D%22en-US%22%3ERe%3A%20Auto%20Attendant%20-%20Error%20Exporting%20Holiday%20Schedule%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-229117%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20also%20having%20the%20same%20error.%20Created%20auto%20attendants%20in%20July.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-202972%22%20slang%3D%22en-US%22%3ERe%3A%20Auto%20Attendant%20-%20Error%20Exporting%20Holiday%20Schedule%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-202972%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F15786%22%20target%3D%22_blank%22%3E%40Thomas%20Binder%3C%2FA%3E%3C%2FP%3E%3CP%3EThomas%2C%26nbsp%3B%3C%2FP%3E%3CP%3EI%20created%20a%20dummy%20AA%20and%20setup%20a%20holiday%20there.%26nbsp%3B%20I%20was%20able%20to%20successfully%20export%20it.%26nbsp%3B%20However%2C%20now%20if%20I%20try%20to%20import%20that%20to%20one%20of%20my%20existing%20AAs%20I%20get%20the%20attached%20error.%26nbsp%3B%20Thoughts%3F%26nbsp%3B%20I%20cleared%20all%20the%20existing%20holidays%20to%20see%20if%20that%20was%20the%20issue%20but%20I%20still%20get%20this%20error.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-202924%22%20slang%3D%22en-US%22%3ERe%3A%20Auto%20Attendant%20-%20Error%20Exporting%20Holiday%20Schedule%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-202924%22%20slang%3D%22en-US%22%3E%3CP%3EThomas%2C%3C%2FP%3E%3CP%3EWe%20do%20not%20have%20any%20audio%20files%20uploaded%20to%20the%20holidays.%26nbsp%3B%20At%20one%20point%20we%20have%20the%20AA's%20redirecting%20to%20another%20AA%20that%20had%20audio%20files%2C%20but%20we%20removed%20those.%26nbsp%3B%20However%2C%20if%20you%20look%20at%20the%20attached%20document%20you%20will%20see%20that%20while%20we%20removed%20the%20routing%20to%20the%20AA%20that%20had%20an%20audio%20file%2C%20even%20after%20saving%20it%20keeps%20saying%20that%20it%20routes%20to%20that%20but%20when%20clicking%20the%20holiday%20settings%20it%20clearly%20doesn't%20(it%20is%20set%20to%20disconnect).%26nbsp%3B%20Let%20me%20do%20another%20test%20where%20I%20create%20a%20generic%20AA%20with%20all%20of%20our%20holidays%20and%20see%20if%20I%20can%20export%2C%20and%20if%20successful%2C%20then%20import%20into%20an%20existing%20AA.%26nbsp%3B%20I%20will%20report%20back%20my%20findings%20later%20today%2C%206%2F11.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-202821%22%20slang%3D%22en-US%22%3ERe%3A%20Auto%20Attendant%20-%20Error%20Exporting%20Holiday%20Schedule%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-202821%22%20slang%3D%22en-US%22%3E%3CP%3EDo%20you%20have%20audio%20files%20uploaded%3F%20The%20error%20message%20says%3A%20%22%3CSPAN%3EAudio%20file%20name%20cannot%20be%20null%20or%20whitespace%3C%2FSPAN%3E%22%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Mike Messer
Occasional Contributor
Late last year some PowerShell was added to SfB to allow for exporting and importing of holidays.  Back in December I could export and import auto attendants without issue.  Now I'm getting the following error when trying to export my holidays. Any ideas on how to fix this?
Has something changed with the backend of the AA structure potentially?  As a test, I created a new AA, added a holiday and was able to export and also import to it with no problem.  However, with all my existing AAs I get the below error.  
$bytes = Export-CsOrganizationalAutoAttendantHolidays -PrimaryUri sip:xxxxxxxxxxx@xxx.com [System.IO.File]::WriteAllBytes("C:\Temp\Holidays.csv", $bytes)
Audio file name cannot be null or whitespace. + CategoryInfo : NotSpecified: (:) [Export-CsOrgani...tendantHolidays], OnlineCmdletException + FullyQualifiedErrorId : AudioFileNameNullOrWhitespace,Microsoft.Rtc.Management.Hosted.OAA.ExportCsOaaHolidaysCmdlet + PSComputerName : admin0a.online.lync.com Exception calling "WriteAllBytes" with "2" argument(s): "Value cannot be null. Parameter name: bytes" At line:2 char:1 + [System.IO.File]::WriteAllBytes("C:\Temp\Holidays.csv", $bytes) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : ArgumentNullException
 
4 Replies

Do you have audio files uploaded? The error message says: "Audio file name cannot be null or whitespace"

Thomas,

We do not have any audio files uploaded to the holidays.  At one point we have the AA's redirecting to another AA that had audio files, but we removed those.  However, if you look at the attached document you will see that while we removed the routing to the AA that had an audio file, even after saving it keeps saying that it routes to that but when clicking the holiday settings it clearly doesn't (it is set to disconnect).  Let me do another test where I create a generic AA with all of our holidays and see if I can export, and if successful, then import into an existing AA.  I will report back my findings later today, 6/11.

@Thomas Binder

Thomas, 

I created a dummy AA and setup a holiday there.  I was able to successfully export it.  However, now if I try to import that to one of my existing AAs I get the attached error.  Thoughts?  I cleared all the existing holidays to see if that was the issue but I still get this error.  

I am also having the same error. Created auto attendants in July.

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies