Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0053233
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] POScriticalalways2023-08-17 16:512023-10-03 08:01
Reporteralfonso_alcaldeView Statuspublic 
Assigned ToRajesh_18 
PriorityurgentResolutionno change requiredFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSLinux 64 bitDatabasePostgreSQLJava version7.x
OS VersionOpenbravo Appliance 14.04Database version9.3.xAnt version1.9.x
Product VersionSCM revision 
Merge Request Status
Review Assigned Tomarvintm
OBNetwork customerOBPS
Support ticket
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0053233: Error Import Business Partner API

DescriptionReproduced in live builds.

When executing the business partner import method, it always tries to update.

When only 1 BP exists, it updates the information of the BP indicated from the json, even if the searchkey is different, adding the location and updating everything except the searchkey.

In case there is more than 1, it gives an error in EDL, with the message that it is not unique, and the number of BP existing in the client where you are triying to insert.

Steps To Reproduce** 1 existing BP
- Select customer with a unique BP, to try to add another BP from API.
- Execute org.openbravo.api.ImportService/BusinessPartner service, for the selected customer, with new data (Searchkey, etc).
- Check that the existing BP has been updated.

**More than 1 existing BP
- Select customer with more than 1 BP, to try to add one more BP from API.
- Execute org.openbravo.api.ImportService/BusinessPartner service, for the selected customer, with new data (Searchkey, etc).
- Error registered in EDL Request, "Error while importing an item: query did not return a unique result: X". X = number of existing BP
TagsNo tags attached.
Attached Files? file icon Screencast from 17-08-23 16:47:46.webm [^] (4,611,696 bytes) 2023-08-17 16:51

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0153852)
marvintm (viewer)
2023-08-23 14:01

There is actually no issue, and the problem comes from a wrong usage of the API. The searchKey property is incorrectly specified as "searchkey" in the video, and this is what is causing the problem to happen.

- Issue History
Date Modified Username Field Change
2023-08-17 16:51 alfonso_alcalde New Issue
2023-08-17 16:51 alfonso_alcalde Assigned To => Retail
2023-08-17 16:51 alfonso_alcalde File Added: Screencast from 17-08-23 16:47:46.webm
2023-08-17 16:51 alfonso_alcalde OBNetwork customer => OBPS
2023-08-17 16:51 alfonso_alcalde Triggers an Emergency Pack => No
2023-08-22 12:19 Rajesh_18 Assigned To Retail => Rajesh_18
2023-08-22 12:20 Rajesh_18 Status new => scheduled
2023-08-23 14:01 marvintm Review Assigned To => marvintm
2023-08-23 14:01 marvintm Note Added: 0153852
2023-08-23 14:01 marvintm Status scheduled => closed
2023-08-23 14:01 marvintm Resolution open => no change required
2023-10-03 07:59 alfonso_alcalde Severity critical => major
2023-10-03 08:01 alfonso_alcalde Severity major => critical


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker