Skip to main content
Question

Facing an issue while upgrading from 23.207.0025 to 24.209.0013 Version.


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.

4 replies

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

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
  • Freshman II
  • 10 replies
  • 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+5
rakeshe45 wrote:

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
  • Freshman II
  • 10 replies
  • 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.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings