I am trying to use the "Put\_Ledger" function inside the Financial\_management API in Workday, but I keep on getting an error when I try to add the `object[]` to the object (as it states in the API to do).

Workday has been no help in solving this issue. Here is a sample of the code. The objects are creates, and then added to parent objects:

```
Ledger_Only_DataType ldOnly = new Ledger_Only_DataType
{
    Actuals_Ledger_ID = "1234567",
    Can_View_Budget_Date = true
};

//Commitment_Ledger_data
Commitment_Ledger_Data__Public_Type cl = new Commitment_Ledger_Data__Public_Type
{
    Commitment_Ledger_Reference = ledgerObject,
    Enable_Commitment_Ledger = true,
    Spend_Transaction_Data = st,
    Payroll_Transaction_Data = pt
};

// This is where the error occurs:
ldOnly.Commitment_Ledger_Data = cl;     

```

Error message:

> 
> "Cannot implicitly convert type 'CallWorkdayAPI.Financial\_Management.Commitment\_Ledger\_Data\_\_Public\_Type' to 'CallWorkdayAPI.Financial\_Management.Commitment\_Ledger\_Data\_\_Public\_Type[]"
> 
> 
>