githubbob42 / mingle2github2

0 stars 1 forks source link

PBI SF ID replaced with a PB SF ID during sync #4235

Open githubbob42 opened 7 years ago

githubbob42 commented 7 years ago

Mingle Card: 4571 Update 11/16/16

This has also occurred now with Liberty Lift, audit log entry AL-1631 https://fieldfx-7534.cloudforce.com/a0To0000006Iovb

Failed to upsert object: FX5__Ticket_Item__c : FIELD_INTEGRITY_EXCEPTION : Price Book Item: id value of incorrect type: a0Eo000000Cc8zCEAR

This issue also pulled the price book id from a totally different price book that wasnt on the job, 

Steps to Reproduce

| | |
|-|-|
|**Version #**| |
|**Hardware**| |
|**OS**| |
|**Browser**| |
|**Username**| |
|**Password**|

Use LastPass: QES Admin

LIberty Lift Prod

   |
|ORG ID| |
|User ID| |
|RayGun Error ID| |
  1. Look at AL-10877, Failed to upsert object: FX5__Ticket_Item__c : FIELD_INTEGRITY_EXCEPTION : Price Book Item: id value of incorrect type: a0Di000000Rd8FxEAJ
  2. Look at the failed event in the packet viewer, the item Service Charge:88.50 is showing a Price Book Item Id of a0Di000000Rd8FxEAJ, when that is actually the id to the Price Book 2011 (the correct pb for the job)

!qes_issue_pbi.png!

Expected Result

What should happen?

Actual Result

What actually happens?

Analysis

According to Horia:

“This is happening because the user is trying to change the auto-populated price book item in Mobile. When clicking the PBI look-up the only option they have is to select a price book. The field is required, and therefore cannot be removed from the layout. It is also not marked as read-only, which makes it editable. See second screenshot (Lookup.jpg). 

This issue is fixed in sync version 4 since the price book item field is read-only in Mobile.”

The examples in this card are all old (7+ months).  I tested this and could not reproduce and checked the code and we are specifically making Price_Book_Item__c readonly and removing it from the layout.  I don’t think that this is a bug any longer.

Related Cards

Test Plan

githubbob42 commented 7 years ago

Horia : 12/12/2016 12:35 CST This is happening because the user is trying to change the auto-populated price book item in Mobile. When clicking the PBI look-up the only option they have is to select a price book. The field is required, and therefore cannot be removed from the layout. It is also not marked as read-only, which makes it editable. See second screenshot (Lookup.jpg). This issue is fixed in sync version 4 since the price book item field is read-only in Mobile.