Yuriy Zaletskyy
Yuriy Zaletskyy

Reputation: 5151

Why Acumatica can't find method

I'm working with Acumatica 5.30.2347. I have following selector in my graph:

var check = PXSelect<POLine,Where<POLine.orderType, Equal<POOrderType.regularOrder>>>
                       .Select(this);

but when I try to execute it, I receive following error: Method not found: 'Void PX.Data.PXLineAttribute..ctor'(System.Type).

Initially I've got an impression, that this error message appeared because class PXLineAttribute doesn't have constructor which accepts System.Type, but with help of reflector I've discovered that PXLineAttribute has following declaration:

public PXLineNbrAttribute(System.Type sourceType)
  : this(sourceType, false)
{
}

which gives me idea that PXLineNbrAttribute has needed constructor. So I have two questions: Why Acumatica Framework can't find constructor of PXLineNbrAttribute? How to help Acumatica to find before mentioned constructor?

Upvotes: 0

Views: 175

Answers (1)

RuslanDev
RuslanDev

Reputation: 6778

Please check your VS class library project references to Acumatica assemblies. I would suspect them to reference assemblies from a different Acumatica build and therefore cause "Method not found ..." errors at runtime.

Upvotes: 1

Related Questions