Trying to Publish InfoPath Form to SharePoint Online List/Library

Vipin Sharma 0 Reputation points
2025-08-11T09:47:50.8733333+00:00

I am Trying to Publish InfoPath Form to SharePoint Online List/Library however getting below error:

User's image

I am trying to build a test InfoPath list/Library to test PowerShell and have only out of the box columns in the list.

Microsoft 365 and Office | SharePoint | Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Steven-N 5,480 Reputation points Microsoft External Staff Moderator
    2025-08-11T11:15:26.16+00:00

    Hi Vipin Sharma

    Thanks for reaching out to Microsoft Q&A forum support 

    Based on your description, I understand that you are encountering an error in Microsoft InfoPath indicating that a publish operation could not be completed, possibly due to an issue with the form template not being successfully published. The SOAP response suggests a server-side error, stating that the operation is not valid due to the current state of the object. 

    From my perspective view, in this context, you can try the workaround methods below to see if the issue can be resolved:  

    • Try republishing the form template by reopening the template in InfoPath, making any necessary adjustments, and then republishing it to the SharePoint list. This can resolve issues related to an incomplete or corrupted publish process. 
    • Modify the list settings in SharePoint to use the default SharePoint form instead of the custom InfoPath form. This can be done by navigating to the list settings, selecting "Form Settings," and choosing the default form option, which bypasses the current template issue. 

    If the issue persists, save a backup of the form template, create a new SharePoint list, and republish the template to the new list. This can help if the original list's configuration is causing the error.  

    For any further support, kindly let us know in the comment section.

    Best regards


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".     

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.