Skip to main content
Answer

Facing an issue while upgrading from 23.207.0025 to 24.209.0013 Version.

  • March 20, 2025
  • 4 replies
  • 96 views

Forum|alt.badge.img

Hello Everyone,

We are upgrading Amazon connector from version 23.207.0025 to 24.209.0013. During the upgrade, we encountered an issue in the overridden method below.

Could you please help us resolve this?

Sharing the code and error screenshot below.

 public static bool IsActive() { return true; }
public delegate Task MapBucketImportDelegate(AmazonSalesOrderBucket bucket, IMappedEntity existing, CancellationToken cancellationToken);
[PXOverride]
public async Task MapBucketImport(AmazonSalesOrderBucket bucket, IMappedEntity existing, CancellationToken cancellationTokenn, MapBucketImportDelegate baseMethod)
{
await baseMethod(bucket, existing, cancellationTokenn);
MappedOrder obj = bucket.Order;
SalesOrder impl = obj.Local;
}

 

Thanks, in advance.

Best answer by rakeshe45

Hi ​@Samvel Petrosov 

we have resolved the issue with the below approach.

public class KNCopiousAmazonSalesOrderProcessorExt : PXGraphExtension<AmazonFBMSalesOrderProcessor>
{
    public static bool IsActive() { return true; }
    public delegate Task MapBucketImportDelegate(AmazonOrderBucketBase<MappedFBMOrder> bucket, IMappedEntity existing, CancellationToken cancellationToken);
    [PXOverride]
    public async Task MapBucketImport(AmazonOrderBucketBase<MappedFBMOrder> bucket, IMappedEntity existing, CancellationToken cancellationToken, MapBucketImportDelegate baseMethod)
    {
        await baseMethod(bucket, existing, cancellationToken);
        MappedFBMOrder obj = bucket.Order;
        SalesOrder impl = obj.Local;
    }
}

Thank you.

4 replies

Samvel Petrosov
Jr Varsity II
Forum|alt.badge.img+8

There are now separated processors for FBM and FBA in 24R2: AmazonFBMSalesOrderProcessor and AmazonFBASalesOrderProcessor.

 

In 23R2 it was just one AmazonSalesOrderProcessor.


Forum|alt.badge.img
  • Author
  • Varsity I
  • March 21, 2025

Hi ​@Samvel Petrosov 

We have extended the AmazonFBMSalesOrderProcessor and overriding the MapBucketImport method as below, however we are facing an issue with this approach. Could you please help us resolve this?

Sharing the code and error screenshot below.

 

public class KNCopiousAmazonSalesOrderProcessorExt : PXGraphExtension<AmazonFBMSalesOrderProcessor>
{
    public static bool IsActive() { return true; }

    public delegate Task MapBucketImportDelegate(AmazonOrderBucket bucket, IMappedEntity existing, CancellationToken cancellationToken);
    [PXOverride]
    public async Task MapBucketImport(AmazonOrderBucket bucket, IMappedEntity existing, CancellationToken cancellationTokenn, MapBucketImportDelegate baseMethod)
    {
        await baseMethod(bucket, existing, cancellationTokenn);
        MappedFBMOrder obj = bucket.Order;
        SalesOrder impl = obj.Local;
    }
}

 

Thank you.


Samvel Petrosov
Jr Varsity II
Forum|alt.badge.img+8

Hi ​@Samvel Petrosov 

We have extended the AmazonFBMSalesOrderProcessor and overriding the MapBucketImport method as below, however we are facing an issue with this approach. Could you please help us resolve this?

Sharing the code and error screenshot below.

 

public class KNCopiousAmazonSalesOrderProcessorExt : PXGraphExtension<AmazonFBMSalesOrderProcessor>
{
    public static bool IsActive() { return true; }

    public delegate Task MapBucketImportDelegate(AmazonOrderBucket bucket, IMappedEntity existing, CancellationToken cancellationToken);
    [PXOverride]
    public async Task MapBucketImport(AmazonOrderBucket bucket, IMappedEntity existing, CancellationToken cancellationTokenn, MapBucketImportDelegate baseMethod)
    {
        await baseMethod(bucket, existing, cancellationTokenn);
        MappedFBMOrder obj = bucket.Order;
        SalesOrder impl = obj.Local;
    }
}

 

Thank you.

You can find the sources for that class in the “YOUR_ACUMATICA_INSTANCE_FOLDER\App_Data\CodeRepository\PX.Commerce.Amazon\Sync\Processors” folder.
Please review them and update your code correspondingly.
I would suggest contacting Acumatica’s support team and open tech. support case if you still have issues after reviewing the source codes.


Forum|alt.badge.img
  • Author
  • Varsity I
  • Answer
  • March 21, 2025

Hi ​@Samvel Petrosov 

we have resolved the issue with the below approach.

public class KNCopiousAmazonSalesOrderProcessorExt : PXGraphExtension<AmazonFBMSalesOrderProcessor>
{
    public static bool IsActive() { return true; }
    public delegate Task MapBucketImportDelegate(AmazonOrderBucketBase<MappedFBMOrder> bucket, IMappedEntity existing, CancellationToken cancellationToken);
    [PXOverride]
    public async Task MapBucketImport(AmazonOrderBucketBase<MappedFBMOrder> bucket, IMappedEntity existing, CancellationToken cancellationToken, MapBucketImportDelegate baseMethod)
    {
        await baseMethod(bucket, existing, cancellationToken);
        MappedFBMOrder obj = bucket.Order;
        SalesOrder impl = obj.Local;
    }
}

Thank you.