SOLVED

Error when connecting to Exchange online vis PowerShell

%3CLINGO-SUB%20id%3D%22lingo-sub-1507835%22%20slang%3D%22en-US%22%3EError%20when%20connecting%20to%20Exchange%20online%20vis%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1507835%22%20slang%3D%22en-US%22%3E%3CP%3ETrying%20to%20connect%20to%20various%20Exchange%20Online%20tenants%20using%20the%20new%20PowerShell%20V2%20modules%20and%20receive%20this%20error%20on%20some%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EImport-PSSession%20%3A%20Data%20returned%20by%20the%20remote%20Get-FormatData%20command%20is%20not%20in%20the%20expected%20format%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Ehave%20tried%20both%20v2%20module%20and%20older%20modules%20and%20get%20same%20result.%20Doesn't%20happen%20on%20all%20tenants%2C%20just%20a%20few.%20isn't%20anything%20to%20do%20with%20workstation%20or%20process%20as%20all%20that%20is%20run%20is%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Econnect-exchangeonline%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt%20certainly%20seems%20to%20be%20a%20tenant%20specific%20issue.%20The%20standard%20MS%20support%20is%20not%20being%20helpful%20and%20just%20closes%20the%20ticket%20without%20providing%20any%20real%20solutions.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDid%20see%20that%20this%20seems%20to%20be%20an%20issue%20for%20some%20about%207%20days%20ago%20but%20this%20continues%20to%20persists%20and%20results%20is%20unable%20to%20connect%20to%20Exchange%20Online%20via%20PowerShell%20to%20run%20any%20scripts.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECan%20someone%20assist%3F%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1507835%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1508033%22%20slang%3D%22en-US%22%3ERe%3A%20Error%20when%20connecting%20to%20Exchange%20online%20vis%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1508033%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F72532%22%20target%3D%22_blank%22%3E%40Robert%20Crane%3C%2FA%3E%26nbsp%3BHey%2C%20you%20should%20report%20it%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fexchange%2Fexchange-online-powershell-v2%3Fview%3Dexchange-ps%23report-bugs-and-issues%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fexchange%2Fexchange-online-powershell-v2%3Fview%3Dexchange-ps%23report-bugs-and-issues%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20I%20have%20also%20followed%20this%20thread%2C%20maybe%20this%20works%20for%20you%20as%20well%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%22%3CSPAN%3EUPDATE%20-%20Added%20%22-delegatedorganization%20xxx.onmicrosoft.com%22%26nbsp%3B%20%26nbsp%3Band%20now%20it%20connects%20to%20V2%22%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fanswers.microsoft.com%2Fen-us%2Fmsoffice%2Fforum%2Fall%2Fcannot-connect-to-exchange-online-via-powershell%2F25ca1cc2-e23a-470e-9c73-e6c56c4fbb46%3Fpage%3D4%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fanswers.microsoft.com%2Fen-us%2Fmsoffice%2Fforum%2Fall%2Fcannot-connect-to-exchange-online-via-powershell%2F25ca1cc2-e23a-470e-9c73-e6c56c4fbb46%3Fpage%3D4%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1508067%22%20slang%3D%22en-US%22%3ERe%3A%20Error%20when%20connecting%20to%20Exchange%20online%20vis%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1508067%22%20slang%3D%22en-US%22%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F551905%22%20target%3D%22_blank%22%3E%40bec064%3C%2FA%3E%26nbsp%3Bwrote%3A%3CBR%20%2F%3E%3CP%3E-ERR%3AREF-NOT-FOUND-%40Robert%20Crane%26nbsp%3BHey%2C%20you%20should%20report%20it%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F72532%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fexchange%2Fexchange-online-powershell-v2%3Fview%3Dexchange-ps%23report-bugs-and-issues%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBut%20I%20have%20also%20followed%20this%20thread%2C%20maybe%20this%20works%20for%20you%20as%20well%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%22%3CSPAN%3EUPDATE%20-%20Added%20%22-delegatedorganization%20xxx.onmicrosoft.com%22%26nbsp%3B%20%26nbsp%3Band%20now%20it%20connects%20to%20V2%22%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fanswers.microsoft.com%2Fen-us%2Fmsoffice%2Fforum%2Fall%2Fcannot-connect-to-exchange-online-via-powershell%2F25ca1cc2-e23a-470e-9c73-e6c56c4fbb46%3Fpage%3D4%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fanswers.microsoft.com%2Fen-us%2Fmsoffice%2Fforum%2Fall%2Fcannot-connect-to-exchange-online-via-powershell%2F25ca1cc2-e23a-470e-9c73-e6c56c4fbb46%3Fpage%3D4%3C%2FA%3E%3C%2FP%3E%0A%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%0A%3CP%3EThanks%2C%20but%20it%20doesn't%20tell%20you%20where%20to%20send%20those%20logs%20unfortunately!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1508076%22%20slang%3D%22en-US%22%3ERe%3A%20Error%20when%20connecting%20to%20Exchange%20online%20vis%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1508076%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F72532%22%20target%3D%22_blank%22%3E%40Robert%20Crane%3C%2FA%3E%26nbsp%3BAt%20the%20bottom%20on%20the%20same%20page%2C%20it%20will%20take%20you%20here%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Foffice-docs-powershell%2Fissues%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Foffice-docs-powershell%2Fissues%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOr%20just%20attach%20the%20logs%20in%20a%20ticket%20to%20the%20MS%20support.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1508097%22%20slang%3D%22en-US%22%3ERe%3A%20Error%20when%20connecting%20to%20Exchange%20online%20vis%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1508097%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F551905%22%20target%3D%22_blank%22%3E%40bec064%3C%2FA%3E%26nbsp%3BAh%20yes%2C%20good%20old%20GitHub.%20Thanks.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMS%20Support%20via%20the%20standard%20logging%20a%20ticket%20process%20has%20proved%20remarkable%20unhelpful%20in%20all%20respects%20unfortunately.%20We%20are%20well%20beyond%20going%20back%20there%20due%20to%20lack%20of%20inaction.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1508101%22%20slang%3D%22en-US%22%3ERe%3A%20Error%20when%20connecting%20to%20Exchange%20online%20vis%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1508101%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F72532%22%20target%3D%22_blank%22%3E%40Robert%20Crane%3C%2FA%3E%26nbsp%3BI'm%20afraid%20I%20know%20exactly%20what%20you%20mean.%20Anyway%2C%20hope%20it%20gets%20sorted!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1508107%22%20slang%3D%22en-US%22%3ERe%3A%20Error%20when%20connecting%20to%20Exchange%20online%20vis%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1508107%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F551905%22%20target%3D%22_blank%22%3E%40bec064%3C%2FA%3E%26nbsp%3BAppreciate%20the%20assist.%20I'll%20report%20back%20if%20there%20is%20progress.%20Seems%20that%3A%3CBR%20%2F%3E%3CBR%20%2F%3EConnect-ExchangeOnline%20-DelegatedOrganization%20'%3CTENANT%3E.onmicrosoft.com'%3C%2FTENANT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Ewill%20also%20work%20BUT%20that's%20a%20pain%20if%20you%20have%20a%20script%20that%20runs%20across%20many%20tenants%2C%20every%20day!%20Some%20of%20which%20need%20this%20and%20others%20that%20don't!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1510234%22%20slang%3D%22en-US%22%3ERe%3A%20Error%20when%20connecting%20to%20Exchange%20online%20vis%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1510234%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F551905%22%20target%3D%22_blank%22%3E%40bec064%3C%2FA%3E%26nbsp%3BNeither%20command%20worked%20so%20still%20an%20issue.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhere%20to%20from%20here%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1512768%22%20slang%3D%22en-US%22%3ERe%3A%20Error%20when%20connecting%20to%20Exchange%20online%20vis%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1512768%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F248720%22%20target%3D%22_blank%22%3E%40Fred_Weinmann%3C%2FA%3E%26nbsp%3BThank%20you%20very%20much%20for%20entering%20this%20conversation!%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F72532%22%20target%3D%22_blank%22%3E%40Robert%20Crane%3C%2FA%3E%26nbsp%3Bthere%20you%20go%20%3B)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1512911%22%20slang%3D%22en-US%22%3ERe%3A%20Error%20when%20connecting%20to%20Exchange%20online%20vis%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1512911%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F551905%22%20target%3D%22_blank%22%3E%40bec064%3C%2FA%3E%26nbsp%3Bactually%2C%20I%20really%20need%20to%20thank%20Robert%20and%20the%20MVP%20network%20here%20%3A)%3C%2Fimg%3E%3C%2FP%3E%0A%3CP%3EI%20got%20roped%20into%20this%20because%20Robert%20asked%20an%20MVP%20friend%20for%20ideas%20who%20happened%20to%20know%20me.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThus%20connected%2C%20we%20were%20able%20to%20narrow%20this%20down%20a%20lot%20due%20to%20the%20call%20Robert%20had%20with%20me%2C%20allowing%20me%20to%20hands%20on%20troubleshoot%20this%20together%20with%20him.%20Before%20that%2C%20the%20temporary%20nature%20of%20things%20was%20a%20real%20issue%2C%20making%20it%20difficult%20to%20track%2C%20when%20you%20can't%20reproduce%20an%20error.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1512920%22%20slang%3D%22en-US%22%3ERe%3A%20Error%20when%20connecting%20to%20Exchange%20online%20vis%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1512920%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F248720%22%20target%3D%22_blank%22%3E%40Fred_Weinmann%3C%2FA%3E%26nbsp%3BThanks%20for%20the%20info%20anyway.%20I%20am%20not%20experiencing%20the%20issue%20with%20V2%2C%20I%20was%20just%20trying%20to%20help%20Robert%20out.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1512959%22%20slang%3D%22en-US%22%3ERe%3A%20Error%20when%20connecting%20to%20Exchange%20online%20vis%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1512959%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F551905%22%20target%3D%22_blank%22%3E%40bec064%3C%2FA%3E%26nbsp%3Band%20much%20appreciated%20that%2C%20truly%20%3A)%3C%2Fimg%3E%3C%2FP%3E%0A%3CP%3EThe%20community%20lives%20by%20the%20people%20that%20are%20part%20of%20it%20trying%20to%20help%20each%20other.%20Just%20wanted%20to%20make%20sure%20Roberts%20active%20and%20helpful%20interaction%20was%20also%20out%20there%20and%20not%20just%20something%20that%20silently%20happened%20in%20the%20background.%20Wouldn't%20have%20felt%20comfortable%20to%20%22take%20all%20the%20glory%22%20myself%20here%20(for%20values%20of%20glory%20in%20a%20tech%20disruption%2C%20anyway%20%5E%5E).%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1512141%22%20slang%3D%22en-US%22%3ERe%3A%20Error%20when%20connecting%20to%20Exchange%20online%20vis%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1512141%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20folks%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Ea%20quick%20update%20from%20engineering%3A%3C%2FP%3E%0A%3CP%3EThis%20is%20a%20known%20issue%20with%20only%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3Esome%3C%2FEM%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eof%20the%20service%20endpoints%2C%20which%20is%20why%20some%20of%20you%20are%20affected%2C%20some%20not%2C%20and%20why%20it%20can%20go%20away%20after%20some%20time.%3C%2FP%3E%0A%3CP%3EEngineering%20is%20working%20on%20a%20fix%20for%20this%20and%20will%20patch%20this%20as%20soon%20as%20possible%20(Since%20we%20are%20still%20narrowing%20it%20down%2C%20I%20can't%20give%20you%20a%20solid%20ETA%20yet%2C%20sorry)%2C%20at%20which%20point%20everything%20should%20be%20back%20to%20normal.%20Once%20the%20problem%20has%20been%20resolved%2C%20I%20will%20most%20definitely%20post%20an%20update%20here.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20the%20meantime%2C%20there%20is%20a%20workaround%20to%20get%20you%20unblocked%3A%3C%2FP%3E%0A%3CP%3EYou%20can%20update%20the%20connection%20Uri%20to%20explicitly%20include%20the%20%22SerializationData%3DFull%22%20parameter.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20example%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3EConnect-ExchangeOnline%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Ewould%20become%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3EConnect-ExchangeOnline%20-ConnectionUri%20%22%3CA%20href%3D%22https%3A%2F%2Foutlook.office365.com%2Fpowershell-liveid%3FSerializationData%3DFull%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Foutlook.office365.com%2Fpowershell-liveid%3FSerializationData%3DFull%3C%2FA%3E%22%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhile%20this%20will%20keep%20working%20indefinitely%2C%20it%20increases%20the%20bandwidth%20use%2C%20potentially%20slowing%20execution%20at%20scale.%20I%20would%20recommend%20to%20not%20use%20this%20as%20a%20permanent%20update%20to%20your%20code%20and%20undo%20it%20once%20the%20issue%20has%20been%20resolved.%3C%2FP%3E%0A%3CP%3E%3CEM%3ENote%3A%20We%20have%20received%20reports%20of%20this%20workaround%20not%20working%20for%20everybody.%20We%20are%20investigating%20this%2C%20whether%20it%20is%20the%20same%20problem%20or%20an%20entirely%20new%20one.%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI'll%20try%20to%20keep%20you%20updated%20on%20this%20once%20I%20have%20any%20news%20on%20the%20issue%20%3A)%3C%2Fimg%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20are%20affected%20by%20this%20and%20want%20to%20help%20us%20troubleshoot%20this%2C%20please%20fill%20out%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fforms.office.com%2FPages%2FResponsePage.aspx%3Fid%3Dv4j5cvGGr0GRqy180BHbR2iCyV8tWU1Kh494jBzFAxdUN1pLTlVNTkRWWFc4UTBIWjFKUlpEOTdTMy4u%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ethis%20quick%20survey%3C%2FA%3E.%20It%20helps%20us%20with%20developing%20a%20pattern%20and%20tracking%20down%20affected%20sessions.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
MVP

Trying to connect to various Exchange Online tenants using the new PowerShell V2 modules and receive this error on some:

 

Import-PSSession : Data returned by the remote Get-FormatData command is not in the expected format

 

have tried both v2 module and older modules and get same result. Doesn't happen on all tenants, just a few. isn't anything to do with workstation or process as all that is run is:

 

connect-exchangeonline

 

It certainly seems to be a tenant specific issue. The standard MS support is not being helpful and just closes the ticket without providing any real solutions.

 

Did see that this seems to be an issue for some about 7 days ago but this continues to persists and results is unable to connect to Exchange Online via PowerShell to run any scripts.

 

Can someone assist??

13 Replies
Highlighted

@Robert Crane Hey, you should report it https://docs.microsoft.com/en-us/powershell/exchange/exchange-online-powershell-v2?view=exchange-ps#...

 

But I have also followed this thread, maybe this works for you as well?

 

"UPDATE - Added "-delegatedorganization xxx.onmicrosoft.com"   and now it connects to V2"

 

https://answers.microsoft.com/en-us/msoffice/forum/all/cannot-connect-to-exchange-online-via-powersh...

Highlighted

@bec064 wrote:

@Robert Crane Hey, you should report it https://docs.microsoft.com/en-us/powershell/exchange/exchange-online-powershell-v2?view=exchange-ps#...

 

But I have also followed this thread, maybe this works for you as well?

 

"UPDATE - Added "-delegatedorganization xxx.onmicrosoft.com"   and now it connects to V2"

 

https://answers.microsoft.com/en-us/msoffice/forum/all/cannot-connect-to-exchange-online-via-powersh...


Thanks, but it doesn't tell you where to send those logs unfortunately!

Highlighted

@Robert Crane At the bottom on the same page, it will take you here 

https://github.com/MicrosoftDocs/office-docs-powershell/issues

 

Or just attach the logs in a ticket to the MS support.

Highlighted

@bec064 Ah yes, good old GitHub. Thanks.

 

MS Support via the standard logging a ticket process has proved remarkable unhelpful in all respects unfortunately. We are well beyond going back there due to lack of inaction.

Highlighted

@Robert Crane I'm afraid I know exactly what you mean. Anyway, hope it gets sorted!

Highlighted

@bec064 Appreciate the assist. I'll report back if there is progress. Seems that:

Connect-ExchangeOnline -DelegatedOrganization '<tenant>.onmicrosoft.com'

 

will also work BUT that's a pain if you have a script that runs across many tenants, every day! Some of which need this and others that don't!

Highlighted

@bec064 Neither command worked so still an issue. 

 

Where to from here?

Highlighted
Best Response confirmed by Robert Crane (MVP)
Solution

Hi folks,

 

a quick update from engineering:

This is a known issue with only some of the service endpoints, which is why some of you are affected, some not, and why it can go away after some time.

Engineering is working on a fix for this and will patch this as soon as possible (Since we are still narrowing it down, I can't give you a solid ETA yet, sorry), at which point everything should be back to normal. Once the problem has been resolved, I will most definitely post an update here.

 

In the meantime, there is a workaround to get you unblocked:

You can update the connection Uri to explicitly include the "SerializationLevel=Full" parameter.

 

For example:

 

Connect-ExchangeOnline

 

would become:

 

Connect-ExchangeOnline -ConnectionUri "https://outlook.office365.com/powershell-liveid?SerializationLevel=Full"

 

While this will keep working indefinitely, it increases the bandwidth use, potentially slowing execution at scale. I would recommend to not use this as a permanent update to your code and undo it once the issue has been resolved.

Note: We have received reports of this workaround not working for everybody. We are investigating this, whether it is the same problem or an entirely new one.

 

I'll try to keep you updated on this once I have any news on the issue :)

 

If you are affected by this and want to help us troubleshoot this, please fill out this quick survey. It helps us with developing a pattern and tracking down affected sessions.

 

Update: Fixed typo in workaround

Highlighted

@Fred_Weinmann Thank you very much for entering this conversation! @Robert Crane there you go ;)

Highlighted

@bec064 actually, I really need to thank Robert and the MVP network here :)

I got roped into this because Robert asked an MVP friend for ideas who happened to know me.

 

Thus connected, we were able to narrow this down a lot due to the call Robert had with me, allowing me to hands on troubleshoot this together with him. Before that, the temporary nature of things was a real issue, making it difficult to track, when you can't reproduce an error.

Highlighted

@Fred_Weinmann Thanks for the info anyway. I am not experiencing the issue with V2, I was just trying to help Robert out.

Highlighted

@bec064 and much appreciated that, truly :)

The community lives by the people that are part of it trying to help each other. Just wanted to make sure Roberts active and helpful interaction was also out there and not just something that silently happened in the background. Wouldn't have felt comfortable to "take all the glory" myself here (for values of glory in a tech disruption, anyway ^^).

Highlighted

@Fred_Weinmann We're also seeing this for one user in our tenant, but not another user, if that help or confuses things.