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 :
Microsoft Dynamics CRM (Archived)

Unable to bulk edit opportunities

(0) ShareShare
ReportReport
Posted on by 37

Hi All,

When we select some records and try to save after using the multiple record edit feature all users (even system administrators) will get the folowing error in an dialog box pop up "An error has occurred. The selected action was not completed for one or more records.". The changes you will make won't be saved. When you edit the selected records one by one there isn't any problem. 

I tried the bulk edit feature on multiple entities but this error only shows when bulk editing opportunities, other entities will save without an problem. I also made an workflow changing some fields and triggering this on the same opportunities and this is succeeding also.

Any thoughts on how to tackle this problem?

We use Microsoft Dynamics CRM 2016 8.1.0.359

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Nadeeja Bomiriya Profile Picture
    6,804 on at

    Hi Jos,

    There could be many reasons why this error occurs.  Best thing to do is to check the Event Viewer and also enable tracing and trace logs to see what the actual error is after performing the action again.

  • Jos S. Profile Picture
    37 on at

    Hi Nadeeja,

    Good call on checking the Event Viewer, I asked the system administrator to check if any errors/warnings where popping up after executing the action and it did!

    Exception information:

       Exception type: CrmException

       Exception message: Attribute: statecode cannot be set to NULL

      at Microsoft.Crm.Application.Pages.Dialogs.BulkEdit.ConfigureForm()

      at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)

      at System.Web.UI.Control.PreRenderRecursiveInternal()

      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    So it seems it's trying to set the statecode to NULL when i perform an Bulk Edit. Any idea why this is happening?

    Cheers,

    Jos

  • Verified answer
    Jos S. Profile Picture
    37 on at

    I removed the field 'statecode' from our forms (it was displayed in the header), since it was trying to modify it to NULL (which isn't psossible because the system requires the field to be filled in). Now i'm able to Bulk Edit all opportunities again.

  • Community Member Profile Picture
    on at

    Hi Jos,

    which field/fields do you want to edit?

    It doesn't make sense to bulk edit fields like estimated revenue or something like this. This is even blocked on the buld edit page. Please give us some more details on which field you want to bulk edit.

    Regards, Karan

  • Community Member Profile Picture
    on at

    Great!

  • Jos S. Profile Picture
    37 on at

    F.Y.I. We have several opportunities where the estimatedclosedate is still in 2016 but are close to closing. They needed to be moved to the end of this month.

  • yleclerc Profile Picture
    1,549 on at

    For us, the problem was on the Incident Form. We had to make sure these fields appear on the form, even if they are hidden. As soon as they were on the form, the problem disappeared:

    - kbarticleid

    - subjectid

    - productid

    - contractservicelevelcode

    - productserialnumber

    This is somehow connected to the right pane that appears when you bulk edit cases.

    2020_2D00_04_2D00_21_5F00_14_2D00_45_2D00_33.jpg

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans