Travelport / travelport-uapi-tutorial-c-sharp

The travelport-uapi-tutorial-c-sharp is a C# project for Universal API that will help you connect and code a standard Air availablity call and Hotel search, details, and booking flow.
35 stars 30 forks source link

Mapped Statements collection does not contain value for getNotDeletedPartyRoleForProvisioningCode #231

Open salman-elahi93 opened 2 years ago

salman-elahi93 commented 2 years ago

We are receiving error while calling AirCreateReservation API with Emulation. Our request params are following:

<AirCreateReservationReq xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" TargetBranch="PXXXXXXX" RetainReservation="Both">
  <BillingPointOfSaleInfo OriginApplication="UAPI" xmlns="http://www.travelport.com/schema/common_v49_0" />
  <OverridePCC ProviderCode="1G" PseudoCityCode="XXXX" xmlns="http://www.travelport.com/schema/common_v49_0" />
  <BookingTraveler Key="64564-6546546-5" TravelerType="ADT" DOB="2022-06-01" xmlns="http://www.travelport.com/schema/common_v49_0">
    <BookingTravelerName Prefix="Mr" First="Salman" Last="Elahi" />
    <PhoneNumber CountryCode="" Number="645654654354" />
    <Email EmailID="salman@gmail.com" />
  </BookingTraveler>
  <SSR Type="DOCS" FreeText="P/PK//PK/01JUN22/M/Elahi/Salman" xmlns="http://www.travelport.com/schema/common_v49_0" />
  <AirPricingSolution Key="JBVV6EVqWDKA4iRlGAAAAA==" TotalPrice="PKR24330" BasePrice="USD112.00" ApproximateTotalPrice="PKR24330" ApproximateBasePrice="PKR22210" EquivalentBasePrice="PKR22210" Taxes="PKR2120" ApproximateTaxes="PKR2120" xmlns="http://www.travelport.com/schema/air_v49_0">
    <AirSegment Key="JBVV6EVqWDKAziRlGAAAAA==" Group="0" Carrier="PK" FlightNumber="306" Origin="KHI" Destination="LHE" DepartureTime="2022-06-15T19:00:00.000" ArrivalTime="2022-06-15T20:45:00.000" ClassOfService="L" />
    <AirPricingInfo LatestTicketingTime="2022-06-15T23:59:00.000+05:00" PricingMethod="Guaranteed" PlatingCarrier="PK" BasePrice="USD112.00" Key="JBVV6EVqWDKAtiRlGAAAAA==" TotalPrice="PKR24330" ApproximateTotalPrice="PKR24330" ApproximateBasePrice="PKR22210" EquivalentBasePrice="PKR22210" Taxes="PKR2120" ApproximateTaxes="PKR2120" ProviderCode="1G">
      <FareInfo EffectiveDate="2022-06-14T17:24:00.000+05:00" Destination="LHE" Origin="KHI" PassengerTypeCode="ADT" FareBasis="LOW1" Key="JBVV6EVqWDKAsiRlGAAAAA==" />
      <BookingInfo BookingCode="L" FareInfoRef="JBVV6EVqWDKAsiRlGAAAAA==" />
      <PassengerType Code="ADT" BookingTravelerRef="64564-6546546-5" />
    </AirPricingInfo>
  </AirPricingSolution>
  <ActionStatus Type="TAW" TicketDate="2022-06-14T17:25:49.499+05:00" ProviderCode="1G" xmlns="http://www.travelport.com/schema/common_v49_0" />
</AirCreateReservationReq>

We are receiving following error:

nested exception is org.apache.ibatis.exceptions.PersistenceException:

Error querying database. Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for getNotDeletedPartyRoleForProvisioningCode

Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for getNotDeletedPartyRoleForProvisioningCode

Thanks

RicOsiro commented 2 years ago

Hi

this error is a java exception thats give some information, but not precise where it came from. There are 2 public environments available to make request,it is not specified. Normally the api response is a structured XML when it is processed, at least the request is fully received to register the call, but it is not the case.

To open a private ticket that don't need to mask private date with all information please open a ticket on MyTravelport (https://my.travelport.com/). A private support for customer is available.

thanks and regards