Unusual errors in mainnet vs testnet

I had this contract in testnet and everything was working as intended. The same contract, deployed to mainnet gives out errors.

This is the event declared in the contract

event LotteryJoin(address indexed _from, uint256 amount);

This is the emit call from the contract

emit LotteryJoin(msg.sender, msg.value);

This is the ABI for that event used in the sync configuration

  "anonymous": false,
  "inputs": [
      "indexed": true,
      "internalType": "address",
      "name": "_from",
      "type": "address"
      "indexed": false,
      "internalType": "uint256",
      "name": "amount",
      "type": "uint256"
  "name": "LotteryJoin",
  "type": "event"

This is the topic used in sync configuration


Both configurations are the same in both mainnet and testnet - only the Table Name differs

So, whenever that event is triggered, the testnet code works good

On the mainnet, in dashboard logs I see this error:

2022-03-17T07:57:50.765Z - Error: Invalid field name for update: _from
    at /moralis-server/lib/Controllers/DatabaseController.js:582:21
    at Array.forEach (<anonymous>)
    at /moralis-server/lib/Controllers/DatabaseController.js:574:31
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

I have the same code / configuration in both testnet and mainnet. What is happening?

Seem error is the name of address in abi. Just use only normal character.


so do I need to update the contract also, or just modify the abi?

Maybe do both. modify the abi in configuration first.

modified just the abi
it works now, thanks

weird because on testnet it worked with _from also :confused:

That’s i concerned. I meet the same error and does not work on testnet. Maybe it’s because moralis server version. Try to keep update latest version