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

Notifications

Announcements

No record found.

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.
I have the same question (0)
  • Suggested answer
    Rik Roy Profile Picture
    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
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 81 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

#3
#ManoVerse Profile Picture

#ManoVerse 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans