Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

API Pagination Assistance

Help! I've been working on getting paginated API results, but Power Query is returning an error that says: "Expression.Error: We cannot convert a value of type List to type Text." Can you help me fig...
  • Akash_Varuna's avatar
    1 year ago

    Hi , 

    Some columns contain Lists, but transformations assume they are Text.

    So try using Text.Combine to convert lists to text before applying transformations.

    Paginated results include incompatible types (e.g., Lists) during combination.

    So Convert all results to tables using Table.FromList before combining them with Table.Combine.

  • Akash_Varuna's avatar
    Akash_Varuna
    1 year ago

    Apply Table.FromList wherever the API response is generating a List instead of a Table.

    Apply Text.Combine after loading the data from the API and before performing transformations that expect Text values 
    Furtehr go through applied steps to get understanding where these arer happening