Hello @Lawrence Borbón and thank you for your question.
I reproduced your issue with a simple pipeline with 1 parameter (type object), 1 variable ( type string), and 1 Set Variable activity.
My input parameter is a json object, of value:
{"propA":"rootlevel","prop-dash":"hello"}
When I tried to get "prop-dash" in my Set Variable using:
@pipeline().parameters.input.prop-dash
I got an error similar to yours. So I tried another method:
@pipeline().parameters.input['prop-dash']
This debugs successfully and returned the value "hello"
Please try the below expression and let me know if it works.
@activity('RetrieveRecordCount').output.ADFWebActivityResponseHeaders['Pagination-Page-Count']