web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Unable to "Send a Survey" through Power Automate. Get error "Source array was not long enough"

(0) ShareShare
ReportReport
Posted on by 5
This is my first post, so apologies for any mistakes that I make.
Getting the following error when trying to send a survey through Power Automate when an Event has been marked as attended. Error message is:
"ErrorMessage":
"Microsoft.FormsPro.Shared.Common.InvalidFormIdException: Source array was not long enough. Check srcIndex and length, and the array's lower bounds. --->
System.ArgumentException: Source array was not long enough. Check srcIndex and length, and the array's lower bounds.\r\n
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)\r\n
at Microsoft.FormsPro.Shared.Common.FormIdEncoder.ExtractOrgIdAndAccountCode(String id, Guid& orgId, Guid& accountCode, String& tableId, Dictionary`2& moreInfo)\r\n
--- End of inner exception stack trace ---\r\n
at Microsoft.Forms.Pro.ApiFacade.Helpers.FormsApiHelper.d__11.MoveNext()\r\n
--- End of stack trace from previous location where exception was thrown ---\r\n
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n
at Microsoft.Forms.Pro.ApiFacade.RequestHandlers.SendEmailsForFlowRequestHandler.d__12.MoveNext()\r\n
--- End of stack trace from previous location where exception was thrown ---\r\n
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n
at Microsoft.Forms.Pro.ApiFacade.RequestHandlers.SendEmailsForFlowRequestHandler.d__11.MoveNext()"
The action to send the survey is:
pastedimage1626704488849v2.png
Many thanks for any help.
  • Suggested answer
    Rik Roy Profile Picture
    Microsoft Employee on at

    Hi Iqbal,

    Thanks for reaching out. Can you please drop a note to CustomerVoice@microsoft.com with the error details, the Survey FormID and the Power Automate Flow ID ? We will investigate the issue to unblock you.

    Regards

    Rik

  • Verified answer
    Welly Lee Profile Picture
    Microsoft Employee on at

    Hello,

    Can you check if your Power Automate use msfp_sourcesurveyidentifier field (instead of msfp_surveyid)? You can get the msfp_sourcesurveyidentifier etiher through the FormID value on the URL or from Customer Voice Survey entity in Data Verse. Please see below

    pastedimage1626709278090v1.png

  • Suggested answer
    IqbalShah Profile Picture
    5 on at

    Hi Welly! Brilliant!! I was using the survey id and not source survey id. I have updated my flow and it works.

    I spent nearly half a day researching a solution to this problem before I posted my problem here.

    Next time I will start here first.

    Thank you and this community for an excellent service.

    Iqbal

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daniyal Khaleel Profile Picture

Daniyal Khaleel 103 Most Valuable Professional

#2
11manish Profile Picture

11manish 69 Super User 2026 Season 2

#3
Travis South Profile Picture

Travis South 50

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans